<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <ul id="foo">
        <li>First  (1)</li>
        <li>Second (2)</li>
        <li>Third  (3)</li>
    </ul>
</body>
<script>
    var foo = document.getElementById('foo');
    console.log(foo.firstChild);
</script>
</html>